package Class.Homemade.demo0525.demo4;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 姚东名
 * Date: 2024-05-25
 * Time: 22:26
 */
//抽象类：
public abstract class Animal {
    public String name;
    public int age;

    public Animal(String name, int age) {
        this.name = name;
        this.age = age;
    }
    //不要求实现方法里面的内容 -> 抽象方法
    public abstract void eat();//跑、飞、游泳 写到当前Animal这个类中？
}
